// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


Vue.config.productionTip = false
//导入mint-ui
import mintui from "mint-ui";
Vue.use(mintui);
import "mint-ui/lib/style.css";
//导入mui
import "../static/mui/css/mui.css";
//导入vue-resource的ajax请求
import vueResource from "vue-resource";
Vue.use(vueResource);
/* eslint-disable no-new */
//在路由对象里配置路由
//导入日期格式插件moment
import moment from "moment";
Vue.use(moment);
Vue.filter("datefmt",function(input,fmtString){
  return moment(input).format(fmtString);
})
//导入axios的ajax请求
import axios from "axios";
Vue.prototype.$axios=axios;
axios.defaults.baseURL ="http://vue.studyit.io"
//导入序列化数据qs
import qs from "qs";
Vue.prototype.$qs = qs;
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
 
})
